<?php

namespace App\Http\Requests\Api\Upload;

use App\Http\Requests\Request;

class Create extends Request
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'file'=>'required'
        ];
    }

    public function messages(): array
    {
        return [
            'file.required'=>'缺少file参数'
        ];
    }
}
